﻿using UnityEngine;
using System.Collections;

public class PercentageController : MonoBehaviour {

    public UILabel labelPercentage;
    public int MIN = 0;
    public int MAX = 1;
    
    private UISlider Slider;

	void Start () {
        Slider = GetComponent<UISlider>();
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public void OnChange()
    {
        labelPercentage.text = Slider.value.ToString() + "%";
    }

    public float GetValue()
    {
        return Slider.value;
    }
}
